package ambika.inheritance1;

public class Truck extends Vehicle {
 
	private String truckType; 
	
	public Truck(int vWheels, String color, String truckType){
		super(vWheels, color);
		this.truckType = truckType;
	}

	public String getTruckType() {
		return truckType;
	}

	public void setTruckType(String truckType) {
		this.truckType = truckType;
	}
	
	public void getMessage(){
		System.out.println("Trucks are fun to ride in.");
	}
	
	

}
